//
//  MHCHHellpViewController.m
//  Go!
//
//  Created by rimi on 16/7/18.
//  Copyright © 2016年 凌风. All rights reserved.
//

#import "MHCHHellpViewController.h"

@interface MHCHHellpViewController ()
@property (nonatomic, strong) UIImageView *imageview ;
@property (nonatomic, strong) UIButton *backbtn;
@property (nonatomic, strong) UILabel *lable;
@property (nonatomic, strong) UIImageView *phoneimageview;
@end

@implementation MHCHHellpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.imageview];
    [self.view addSubview:self.phoneimageview];
    [self.view addSubview:self.backbtn];
    [self.view addSubview:self.lable];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (UIImageView *)imageview{
    if (!_imageview) {
        _imageview = [[UIImageView alloc]initWithFrame:CGRectMake(Size_W(0), Size_H(0),Size_W(414), Size_H(736)-49)];
        _imageview.image = [UIImage imageNamed:@"帮助的背景图.jpg"];
    }
    return _imageview;
}

- (UIImageView *)phoneimageview{
    if (!_phoneimageview) {
        _phoneimageview = [[UIImageView alloc]initWithFrame:CGRectMake(Size_W(0), Size_H(0),Size_W(250), Size_H(250))];
        _phoneimageview.center = self.imageview.center;
        _phoneimageview.image = [UIImage imageNamed:@"帮助"];
    }
    return _phoneimageview;
}

-(UIButton *)backbtn{
    if (!_backbtn) {
        _backbtn = [[UIButton alloc]initWithFrame:CGRectMake(20, 30,Size_W(50), Size_H(35))];
        [_backbtn setImage:[UIImage imageNamed:@"我的返回"] forState:UIControlStateNormal];
        [_backbtn addTarget:self action:@selector(clickback) forControlEvents:UIControlEventTouchUpInside];
    }
    return _backbtn;
}

- (UILabel *)lable{
    if (!_lable) {
        _lable = [[UILabel alloc]initWithFrame:CGRectMake(Size_W(0), Size_H(0),Size_W(250), Size_H(130))];
        _lable.center = CGPointMake(CGRectGetMidX(self.imageview.bounds), Size_H(500));
        _lable.text = @"如果需要帮助请拨打电话028-88692385";
        _lable.numberOfLines = 0;
        _lable.textAlignment = NSTextAlignmentCenter;
        _lable.font = [UIFont systemFontOfSize:24];
    }
    return _lable;
}

#pragma mark - 点击事件
-(void) clickback{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
